package cn.bjc.system.mapper;

import cn.bjc.basic.mapper.BaseMapper;
import cn.bjc.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//菜单mapper层
public interface RoleMapper extends BaseMapper<Role> {


    void saveRoleMenu(@Param("rid") Long id, @Param("menus")List<Long> menus);

    void saveRolePermission(@Param("rid") Long id, @Param("permissions")List<Long> permissions);

    void removeEmployeeRole(Long rid);

    void removeRoleMenu(Long rid);

    void removeRolePermission(Long rid);

}
